package com.test2;

import com.mvc.ResponseBody;
import com.mvc.ResponseView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author Clarklevis
 * @Date 2021/5/21
 */
public class XXXController {
    @ResponseBody("/test1.do")
    public String test1(HttpServletRequest req, HttpServletResponse resp){
        return "haahahah";
    }

    @ResponseBody("/test2")
    public String test2(HttpServletRequest req, HttpServletResponse resp){
        return "hahaha";
    }

    @ResponseView("/test3")
    public String test3(HttpServletRequest req, HttpServletResponse resp){
        return "xxx.html";
    }
}
